package com.gqz.equip.mapstruct;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gqz.equip.app.entity.TEnInterfaceCodeEntity;
import com.gqz.equip.vo.TEnInterfaceCodeVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper(componentModel = "spring", imports = {})
@Component
public interface TEnInterfaceCodeMapstruct {

    TEnInterfaceCodeVo toVo(TEnInterfaceCodeEntity entity);

    List<TEnInterfaceCodeVo> toVos(List<TEnInterfaceCodeEntity> entity);

    @Mapping(target = "optimizeJoinOfCountSql", ignore = true)
    Page<TEnInterfaceCodeVo> toVos(Page<TEnInterfaceCodeEntity> entity);

    TEnInterfaceCodeEntity toEntity(TEnInterfaceCodeVo vo);

    List<TEnInterfaceCodeEntity> toEntitys(List<TEnInterfaceCodeVo> vos);

}
